<?php
try {
	$soap = new SoapClient ( "https://www.ovh.com/soapi/soapi-re-1.63.wsdl" );
	
	// login
	$session = $soap->login ( "df44485-ovh", "53aCt5Se", "fr", false );
	// echo "login successfull\n";
	
	// telephonyCallList
	$result = $soap->telephonyCallList ( $session, "0972334222", "france", "", "", "", "2015-02-12", true, "", "", "" );
	// echo "telephonyCallList successfull\n";
	print_r ( $result ); // your code here ...
	foreach ( $result->list as $value ) {
		// echo $value;
		if ($value->duration != "00:00:00") {
			echo $value->callingNumber . "\r";
			echo $value->duration . "\r";
			echo $value->date . "\n";
		}
	}
	// logout
	// $soap->logout($session);
	// echo "logout successfull\n";
} catch ( SoapFault $fault ) {
	echo $fault;
}
?>